//
//  RulesViewController.m
//  KuWoCan
//
//  Created by 周小宏 on 2017/5/9.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "RulesViewController.h"

@interface RulesViewController ()

@end

@implementation RulesViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"酷我用户协议和法律协议";
    
    UITextView *rulesTextView = [[UITextView alloc] init];
    [self.view addSubview:rulesTextView];
    rulesTextView.font = KwFont(15);
    [rulesTextView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    NSString *rulesPath = [[NSBundle mainBundle] pathForResource:@"Rules" ofType:@"txt"];
    rulesTextView.text = [[NSString alloc] initWithContentsOfFile:rulesPath encoding:NSUTF8StringEncoding error:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
